<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%--<%@page import="com.sbpms.bean.testJavaBean"%>--%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>流媒体视频管理平台-视频上传</title>
		<link href="css/site.css" rel="stylesheet" type="text/css" />
		
		<script type="text/javascript">
			function CheckFile() {
				if(document.getElementById("fileUpload_myFile").value=="")
				{
					alert("必须选择一个文件再进行上传");
					return false;
					}
			}
		</script>
		
	</head>
	<body>
		<table
			style="height: 93px; text-align: center; margin: auto; width: 100%;">
			<tr>
				<td>
					<jsp:include page="top.jsp" flush="true"></jsp:include>
					<div class="mainHolder">
						<div
							style="text-align: left; width: 900px; font-size: 20px; padding-top: 15px; padding-left: 30px;">
							<div style="float: left">
								当前位置:视频上传
							</div>
							<jsp:include page="searchBar.jsp"></jsp:include>
							<br>
						</div>
						<hr />
						<table 
							style="height: 93px; text-align: left; margin: auto; width: 100%;">
							<tr>
								<td style="padding-left: 30px;">
									<s:form action="fileUpload" method="POST"
										enctype="multipart/form-data">
									
						选择分类：<select id="dd" name="video.categoryID">
											<option value="1">
												财经新闻
											</option>
											<option value="2">
												广告
											</option>
											<option value="3">
												时事新闻
											</option>
											<option value="4">
												通知
											</option>
										</select>
										<br />
										<br />
						是否共享：<select id="isShare" name="video.isPublic">
											<option value=1>
												是
											</option>
											<option value=2>
												否
											</option>
										</select>
										<br />
										<br />
										<s:file name="myFile" label="选择文件" /><span style="color: red">注意：只能上传flv格式的视频</span>
										<br />
										<div>
										<s:textarea name="video.remark" cssStyle="width:500px;height:200px;" label="描述" />
										</div>
										<s:submit value="确定" onclick="return CheckFile()"  />
									</s:form>

									<div style="color: red; text-align: center;">
										<s:actionerror />
									</div>
									<%--<jsp:useBean id="testMsg" class="com.sbpms.bean.testJavaBean"></jsp:useBean>
					<jsp:getProperty name="testMsg" property="categorylist" />
					
					--%>

								</td>
							</tr>
						</table>
					</div>

				</td>
			</tr>
		</table>

	</body>
</html>
